package com.ruoyi.jzzgl.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import com.ruoyi.common.mybatis.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;

/**
 * 站点管理业务对象
 *
 * @author xq
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class JzzglZdglBo extends BaseEntity {

    /**
     * ID
     */
    @NotNull(message = "ID不能为空", groups = { EditGroup.class })
    private Integer id;

    /**
     * 站点名称
     */
    @NotBlank(message = "站点名称不能为空", groups = { AddGroup.class, EditGroup.class })
    @Size(min = 0, max = 50, message = "站点名称长度不能超过50个字符")
    private String stationName;

    /**
     * 站点配置密码
     */
    @NotBlank(message = "站点配置密码不能为空", groups = { AddGroup.class, EditGroup.class })
    @Size(min = 0, max = 20, message = "站点配置密码长度不能超过20个字符")
    private String stationPassword;

    /**
     * 站点地址
     */
    @NotBlank(message = "站点地址不能为空", groups = { AddGroup.class, EditGroup.class })
    @Size(min = 0, max = 200, message = "站点地址长度不能超过200个字符")
    private String stationAddress;

    /**
     * 联系人
     */
    @Size(min = 0, max = 50, message = "联系人长度不能超过50个字符")
    private String contactPerson;

    /**
     * 联系电话
     */
    @Size(min = 0, max = 20, message = "联系电话长度不能超过20个字符")
    private String contactPhone;
}
